const express = require('express')
const http = require('http')
require('dotenv').config()

const { ioStart } = require('./src/socketIo')

const app = express()
const server = http.createServer(app)
ioStart(server)

server.listen(
  process.env.SIGNAL_PORT,
  () => console.log(`Signal Server running, port: ${process.env.SIGNAL_PORT}`)
)
